@extends('d.layout.index')
@section('con')	
<div class="mws-panel-header">
	<span><i class="icon-table"></i> 商品尺码浏览</span>
</div>
<div class="mws-panel-body no-padding">
    
    <div id="DataTables_Table_1_wrapper" class="dataTables_wrapper" role="grid">
      <div id="DataTables_Table_1_length" class="dataTables_length">
        <a href="/admin/goods/editstyle/{{$gid}}/{{$sid}}">
          <button class="btn">添加尺码信息</button>
        </a>
      </div>
    <form action="/admin/goods/sizelist/{{$sid}}">
	    <div class="dataTables_filter" id="DataTables_Table_1_filter">
	    	<label>搜索: 
	    		<input aria-controls="DataTables_Table_1" name='keywords' type="text" value="{{$keywords}}" >
	    	</label>
	    	<input type="submit" value="确定" class="btn">
	    </div>
    </form>
    <table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
        <thead>
            <tr role="row">
            	<th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 56px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">ID</th>
            	<th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 112px;" aria-label="Browser: activate to sort column ascending">尺码名称</th>
            	<th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 97px;" aria-label="Platform(s): activate to sort column ascending">尺码库存</th>
            	<th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 333px;" aria-label="Engine version: activate to sort column ascending">操作</th>
            </tr>
        </thead>
        
   		<tbody role="alert" aria-live="polite" aria-relevant="all">
   			@foreach($list as $k => $v)
   			@if($k % 2 == 0)
   			<tr class="odd">
   			@else
   			<tr class="even">
   			@endif
   				<td class="  sorting_1">{{$v['id']}}</td>
                <td class="  sorting_1">{{$v['size']}}</td>
                <td class=" ">{{$v['store_num']}}</td>
                <td class=" " align='center'>
                  <a href="/admin/goods/editstyle/{{$gid}}/{{$sid}}">编辑尺码信息</a>
                  &nbsp;&nbsp;&nbsp; 
                  <a href="/admin/goods/deletesize/{{$v['id']}}">删除</a>

                </td>
            </tr>
           @endforeach
        </tbody>
    </table>
   	<div class="dataTables_paginate paging_full_numbers" id="page">
   	</div>
</div>
</div>

@endsection